﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="CreateUser.aspx.cs" Inherits="Presentation.CreateUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Új felhasználó hozzáadása
    </h2>
    <p>
        <asp:Label ID="NEPTUNLabel" runat="server" Text="" AssociatedControlID="NEPTUN">NEPTUN:</asp:Label>
        <br />
       <asp:TextBox ID="NEPTUN" runat="server" style="margin-bottom: 0px" Width="300px"></asp:TextBox>
       <asp:RegularExpressionValidator ID="Vneptun1" ControlToValidate="NEPTUN" runat="server" ValidationExpression="^\w{6}$" Text="A neptun kód 6 karakter hosszú!"  ForeColor="red"/>
        <asp:RequiredFieldValidator ID="Vneptun2" runat="server" ControlToValidate="NEPTUN"
            ErrorMessage="A mező nem lehet üres!" ForeColor="red"></asp:RequiredFieldValidator>
        <br/>
        Név:
        <br />
        <asp:TextBox ID="Name" runat="server" style="margin-bottom: 0px" Width="300px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Vname" runat="server" ControlToValidate="Name"
            ErrorMessage="A mező nem lehet üres!" ForeColor="red"></asp:RequiredFieldValidator>
        <br/>
        <asp:Label ID="EmailLabel" runat="server" Text="" AssociatedControlID="Email">E-mail:</asp:Label>
        <br />
        <asp:TextBox ID="Email" runat="server" style="margin-bottom: 0px" Width="300px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Vemail" runat="server" ControlToValidate="Email"
            ErrorMessage="A mező nem lehet üres!" ForeColor="red"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="roleLabel" runat="server" Text="Role:"></asp:Label>
        <br/>
        <asp:RadioButton ID="RadioTeacher" runat="server" Checked="True" 
            GroupName="role" Text="Tanár" />
        <asp:RadioButton ID="RadioAdmin" runat="server" GroupName="role" 
            Text="Admin" />
        <asp:RadioButton ID="RadioBoth" runat="server" GroupName="role" 
            Text="Mindkettő" />
    </p>
    <p>
        <asp:Button ID="submit" runat="server" Text="Felhasználó létrehozása" 
            onclick="submit_Click"  />
    </p>

</asp:Content>
